package com.example.sprintboot.mapper;

import com.example.sprintboot.entity.Order;
import com.example.sprintboot.entity.OrderItem;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderMapper {
    void insertOrder(Order order);
    
    void insertOrderItem(OrderItem orderItem);
    
    void insertOrderItems(@Param("orderItems") List<OrderItem> orderItems);
    
    List<Order> selectByUserId(Integer userId);
    
    Order selectById(Integer id);
    
    List<OrderItem> selectOrderItemsByOrderId(Integer orderId);
} 